package com.yonyou.brigade.order_center.controller;


import com.yonyou.brigade.order_center.model.BriFlightInfo;
import com.yonyou.brigade.order_center.model.BriFlightInfoDTO;
import com.yonyou.brigade.order_center.service.IBriFlightInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.text.SimpleDateFormat;
import java.util.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2018-07-09
 */
@Controller
@RequestMapping("/order_center/briFlightInfo")
public class BriFlightInfoController {

    @Autowired
    @Qualifier("briFlightInfoServiceImpl")
    private IBriFlightInfoService briFlightInfoService;

    @RequestMapping("/flights" )
    public @ResponseBody
    Map getFlightInfoDTOS()
    {
        Map params =new HashMap();
        List<BriFlightInfoDTO> flightInfoDTOList=new ArrayList<>();

       Map result= briFlightInfoService.getBriFlightInfoDTOs(params);
        return  result;
    }
}

